package com.gupt.reggie.service;/*
@author name
@data 2023/4/30-10:25
*/


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gupt.reggie.dto.OrdersDto;
import com.gupt.reggie.entity.Orders;

import javax.servlet.http.HttpSession;
import java.util.Date;

public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    void submit (HttpSession session, Orders orders);

    /**
     * 分页查询订单信息
     * @param page
     * @param pageSize
     * @param number
     * @param beginTime
     * @param endTime
     * @return
     */
    Page<OrdersDto> page(int page, int pageSize, String number, Date beginTime, Date endTime);

    /**
     * 移动端订单查询
     * @param page
     * @param pageSize
     * @return
     */
    Page<OrdersDto> userPage(HttpSession session,int page, int pageSize);
}
